﻿CREATE TABLE [dbo].[TableDownload] (
    [TableDownloadId]           UNIQUEIDENTIFIER CONSTRAINT [DF_TableDownload_TableDownloadId] DEFAULT (newid()) ROWGUIDCOL NOT NULL,
    [StorageAccountId]          UNIQUEIDENTIFIER NOT NULL,
    [TableName]                 VARCHAR (150)    NOT NULL,
    [LastProcessedPartitionKey] VARCHAR (500)    NOT NULL,
    [LastProcessedRowKey]       VARCHAR (500)    NOT NULL,
    [DateTimeLastUpdatedUTC]    DATETIME         NOT NULL,
    CONSTRAINT [PK_TableDownload] PRIMARY KEY CLUSTERED ([TableDownloadId] ASC)
);

